﻿using AutoMapper;
using Leo.Awesome.AppPlatform.Domain;
using Leo.Awesome.AppPlatform.Dtos;
using Volo.Abp.AutoMapper;

namespace Leo.Awesome.AppPlatform.Maps
{
    public class MenuProfile : Profile
    {
        public MenuProfile()
        {
            CreateMap<Menu, MenuGetOutPutDto>();

            CreateMap<Menu, MenuGetListOutputDto>();

            CreateMap<Menu, MenuTreeOutput>();

            CreateMap<MenuGetOutPutDto, Menu>()
                .IgnoreFullAuditedObjectProperties();

            CreateMap<Menu, MenuCreateUpdateInput>();

            CreateMap<MenuCreateUpdateInput, Menu>()
                .IgnoreFullAuditedObjectProperties();


            CreateMap<MenuGetOutPutDto, MenuCreateUpdateInput>();

        }
    }
}
